package com.liu.service.intf;

import com.liu.entity.Department;
import com.liu.vo.PageBeanJson;
import com.liu.vo.R;

public interface DepartmentService {
    //新增
    R save(Department dptartment);
    //查询
    PageBeanJson queryPage(int page, int limit);
    //删除
    R del(int id);
    //修改
    R update(Department dptartment);
    //查询 条件
    PageBeanJson queryPageWhere(String dptname,int page,int limit);
    //批量删除
    R delBatch(int[] ids);
    PageBeanJson selectCount(int page,int limit);
    PageBeanJson selectCountbyName(String dptname,int page,int limit);
}
